import request from '@/utils/request'

// 查询实验守则列表
export function listInformation(query) {
  return request({
    url: '/system/information/list',
    method: 'get',
    params: query
  })
}

// 查询实验守则详细
export function getInformation(safeID) {
  return request({
    url: '/system/information/' + safeID,
    method: 'get'
  })
}

// 新增实验守则
export function addInformation(data) {
  return request({
    url: '/system/information',
    method: 'post',
    data: data
  })
}

// 修改实验守则
export function updateInformation(data) {
  return request({
    url: '/system/information',
    method: 'put',
    data: data
  })
}

// 删除实验守则
export function delInformation(safeID) {
  return request({
    url: '/system/information/' + safeID,
    method: 'delete'
  })
}
